<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang = "it">
    <head>
        <title>{% block title %}{% endblock %}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/css/style.css" rel="stylesheet" type="text/css" media="screen" />

        {# Block that can be used for other stuff to be put in the head #}
        {% block other_head %}{% endblock %}
    </head>
    <body>
        <div id="logo">
            <h1><a href="#">Murphy Task Manager</a></h1>
            <p><em>task management according to Murphy's Law</em></p>
        </div>

        <div id="header">
            <div id = 'user-row'>
                {# TODO: make it work with generic views #}
                {% if request.user.is_authenticated %}
                    <span>Welcome, {{ request.user.first_name }} (<a href = "/logout/">logout</a>)
                        {% if request.user.is_staff %} - <a href = "/admin/">Administration</a>{%endif%}
                    </span>
                {% endif %}
            </div>
        </div>

        <div id = "page">
            {# Block that will contain the actual content of the page #}
            {% block page %}
            {% endblock %}
            <div style="clear: both;">&nbsp;</div>
        </div>

        <div id = "footer">
            <p>Murphy Task Manager. Copyright (c) the MurphyTM team.</p>
            <p>CSS template based on <em>solutions</em> by FreeCSSTemplates.</p>
        </div>
    </body>
</html>
